import pygtk
import gtk

class Win:
    def __init__(self):
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
        self.window.show()

    def main(self):
        gtk.main()

print 'hola'        
base = Win()
base.main()      